﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
    xmlns:local="clr-namespace:Aspire.App"
    
    >


    <!-- Primary Color Brushes -->
    <SolidColorBrush x:Key="NavigationBackgroundColorBrush" Color="#FF484848"/>
    <SolidColorBrush x:Key="NavigationForegroundColorBrush" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="HighLightColorBrush" Color="#FF0097FC"/>
    <SolidColorBrush x:Key="HoverHyperlinkForegroundColorBrush" Color="#FFEBF7FF"/>
    <SolidColorBrush x:Key="HoverHyperLinkBackgroundColorBrush" Color="#FF747474"/>
    <SolidColorBrush x:Key="BodyTextColorBrush" Color="#FF313131"/>


    <!--系统头样式-->
    <Style TargetType="Grid" x:Key="SystemHeadeGridrStyle">
        <Setter Property="HorizontalAlignment"  Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="Height" Value="40"/>
    </Style>
    
    <Style TargetType="ContentControl" x:Key="SystemHeaderStyle">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="40">
                        <TextBlock Text="{Binding DisplayName}" FontFamily="Microsoft YaHei" FontSize="30" FontWeight="Bold" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- 主菜单样式 -->
    <Style TargetType="Grid" x:Key="SystemMenuGridStyle">
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="Height" Value="30" />
        <Setter Property="Margin" Value="0,40,0,0"/>
        <Setter Property="Background" Value="#22000000" />
        <Setter Property="VerticalAlignment" Value="Top" />
    </Style>

    <Style x:Key="MenuItemStyle" TargetType="telerik:RadMenuItem">
        <Setter Property="Header" Value="{Binding DisplayName}"/>
        <Setter Property="ItemsSource" Value="{Binding Functions}"/>
    </Style>

    <Style TargetType="ContentControl" x:Key="SystemMenuStyle">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid >
                        <telerik:RadMenu ItemsSource="{Binding}"  ItemContainerStyle="{StaticResource MenuItemStyle}" >
                            <i:Interaction.Behaviors>
                                <local:NagivateBehavior />
                            </i:Interaction.Behaviors>
                        </telerik:RadMenu>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style> 
    
    <Style TargetType="Grid" x:Key="MainRegionGridStyle">
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="Margin" Value="0,70,0,0"/>
    </Style>
</ResourceDictionary>
